﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class LoadLevelByClick : MonoBehaviour {

    public string _name;
    Button btn;
	void Start () {
        btn = this.GetComponent<Button>();
        btn.onClick.AddListener(JumpLevel);

    }
	
	void JumpLevel () {
        Application.LoadLevel(_name);
	}
}
